import Https from "@/utils/Https";
import Https2 from "@/utils/Https2";

export const queryRegionDataReq = async (params) =>
  await Https2.get("/system/region/getRegion", params);

export const queryAllLabelReq = async (params) =>
  await Https.post("/venue/label/labelList", {
    current: 1,
    pageSize: 10000,
  });

export const queryPageDataReq = async (params) =>
  await Https.post("/venue/info/venueList", params);

export const addItemReq = async (params) =>
  await Https.post("/venue/info/addVenue", params, true);
export const updateItemReq = async (params) =>
  await Https.post("/venue/info/updateVenue", params, true);
export const deleteItemReq = async (params) =>
  await Https.post("/venue/info/deleteVenue", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/venue/info/venueDetail", params);

export const toggleStateReq = async (params) =>
  await Https.post("/venue/info/updateVenueStatus", params, true);
